//立即预约的所有后台请求接口
import {request} from '@/utils/request.js'

export function getHistoryMessage (id) {
	return request({
		url: `/api/message/history/${id}`,
		method:'GET'
	})
}

export function getHistoryMessageByOneself (id) {
	return request({
		url: `/api/message/history/oneself/${id}`,
		method:'GET'
	})
}

export function getBadge (id) {
	return request({
		url: `/api/message/badge/${id}`,
		method:'GET'
	})
}

export function sendMessage (data) {
	return request({
		url: '/api/message/save',
		method:'POST',
		data
	})
}

export function getMessage (id) {
	return request({
		url: `/api/message/getMessage/${id}`,
		method:'GET'
	})
}

export function getNewMessage (id) {
	return request({
		url: `/api/message/new/${id}`,
		method:'GET'
	})
}